//
//  DUTabBarController.m
//  mytoutiao
//
//  Created by duyujin1 on 2021/7/31.
//

#import "DUTabBarController.h"
#import "DUNewsViewController.h"
#import "DUVideoViewController.h"
#import "DURecommendViewController.h"
#import "DUMineViewController.h"

@interface DUTabBarController ()

@end

@implementation DUTabBarController

- (void)viewDidLoad {
    [super viewDidLoad];

    DUNewsViewController * newsViewController=[[DUNewsViewController alloc] init];
    //[self addVC:newsViewController];

    DUVideoViewController * videoViewController=[[DUVideoViewController alloc] init];
    //[self addVC:videoViewController];

    DURecommendViewController * recommendViewController=[[DURecommendViewController alloc] init];
    //[self addVC:recommendViewController];
    
    DUMineViewController * mineViewController=[[DUMineViewController alloc] init];
    //[self addVC:mineViewController];
    
    [self setViewControllers:@[newsViewController,videoViewController,recommendViewController,mineViewController]];
}

-(void)addVC:(UIViewController *)vc{
    UINavigationController * nav=[[UINavigationController alloc] initWithRootViewController:vc];
    [self addChildViewController:nav];
}

@end
